package com.ruoyi.framework.task;

import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.project.order.service.IBinsOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 定时任务调度测试
 * 
 * @author Administrator
 */
@Component("coreTask")
public class CoreTask
{

    @Autowired
    private IBinsOrderService orderService;
    /**
     * 每5秒执行一次
     */
    public void runOrderPrice()
    {
        System.out.println("更新订单价格");
        orderService.updateOrderPrice();
    }
}
